package com.freemarkerdemo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class HelloWorldController {

    @RequestMapping("/index")
    public String index(Map<String,String> map) {
        map.put("name","hello");
        return "index";
    }

    @RequestMapping("/welcome")
    public String welcome(Map<String,String>map) {
        map.put("name","welcome");
        return "welcome";
    }

}
